package com.kwq.shixi.service.impl;


import com.kwq.shixi.dao.TestMapper;
import com.kwq.shixi.model.Test;
import com.kwq.shixi.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service("testService")
public class TestServiceImpl implements TestService {
    @Autowired
    private TestMapper testMapper;

    @Override
    public void create(Test test) {
        testMapper.insertSelective(test);
    }

 /*   @Override
    public List<Test> list() {
        throw new ImoocMallException(ImoocMallExceptionEnum.REQUEST_PARAM_ERROR);

    }*/

    @Override
    public Test get(Integer id) {

        return testMapper.selectByPrimaryKey(id);
    }
}
